package cn.seaboot.admin.excel.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * POJO
 * Excel [t_sys_excel]
 *
 * @author ChenSS on  2019-03-25 11:40
 */
@Schema(description = "Excel [t_sys_excel] 实体类")
public class ExcelSource implements Serializable {
    private static final long serialVersionUID = -1113322036699730874L;
    /**
     * ID
     */
    @Schema(description = "ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
    /**
     * 用户ID
     */
    @NotNull
    @Schema(description = "用户ID")
    private String userId;
    /**
     * 文件名
     */
    @NotNull
    @Size(max = 64)
    @Schema(description = "文件名")
    private String excelName;
    /**
     * 文件原名
     */
    @NotNull
    @Size(max = 64)
    @Schema(description = "文件存储路径")
    private String excelPath;
    /**
     * 0/未生效，1/生效
     */
    @NotNull
    @Schema(description = "Excel状态")
    private Integer excelStatus;
    /**
     * 文件类型
     */
    @NotNull
    @Schema(description = "文件类型")
    private Integer excelType;
    /**
     * 创建日期
     */
    @NotNull
    @Schema(description = "创建日期")
    private LocalDateTime gmtCreate;
    /**
     * 修改日期
     */
    @Schema(description = "修改日期")
    private LocalDateTime gmtModified;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getExcelName() {
        return excelName;
    }

    public void setExcelName(String excelName) {
        this.excelName = excelName;
    }

    public String getExcelPath() {
        return excelPath;
    }

    public void setExcelPath(String excelPath) {
        this.excelPath = excelPath;
    }

    public Integer getExcelStatus() {
        return excelStatus;
    }

    public void setExcelStatus(Integer excelStatus) {
        this.excelStatus = excelStatus;
    }

    public Integer getExcelType() {
        return excelType;
    }

    public void setExcelType(Integer excelType) {
        this.excelType = excelType;
    }

    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public LocalDateTime getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public String toString() {
        return "SysExcel{" +
                "id=" + id +
                ", userId=" + userId +
                ", excelName='" + excelName + '\'' +
                ", excelPath='" + excelPath + '\'' +
                ", excelStatus=" + excelStatus +
                ", excelType=" + excelType +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                '}';
    }
}

